package com.symone.webcms.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModelProperty;

/**
 *   @description : TaskLog 实体类
 *   ---------------------------------
 * 	 @author Archer Chu
 *   @since 2019-04-04
 */
@Data
@Accessors(chain = true)
@TableName("sys_task_log")
public class TaskLog extends Model<TaskLog> {

    private static final long serialVersionUID = 1L;

	@TableId
	private Long id;
	@TableField("task_id")
	private Long taskId;
	@TableField("task_name")
	private String taskName;
	@TableField("task_group")
	private String taskGroup;
	private Long duration;
	private Boolean success;
	@TableField("error_message")
	private String errorMessage;
	@TableField("create_time")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;


	@Override
	protected Serializable pkVal() {
		return null;
	}
}
